package cm.android.mytodoit.model;

public class BuyElement {

	public static final String TABLE_NAME = "todoit_buyelements";

	public static final String TC_ID = "id";
	public static final String TC_NAME = "name";
	public static final String TC_INFO = "info";
	public static final String TC_PRIORITY = "proirity";
	public static final String TC_QUANTITY = "quantity";

	private int id;
	private String name;
	private String info;
	private String priority;
	private String quantity;
	
	
	public static String getTabeCreateString() {
		
		String createString = "CREATE TABLE "+ TABLE_NAME + " ("+TC_ID+" INTEGER PRIMARY KEY AUTOINCREMENT,"
			+ TC_NAME + " TEXT," + TC_INFO + " TEXT," + TC_PRIORITY + " TEXT," + TC_QUANTITY
			+ " TEXT);";
		
		return createString;
	}
	

	@Override
	public String toString() {
		return this.quantity + "  "+name;
	}

	public int getId() {
		return id;
	}

	public void setId(int id) {
		this.id = id;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getInfo() {
		return info;
	}

	public void setInfo(String info) {
		this.info = info;
	}

	public String getPriority() {
		return priority;
	}

	public void setPriority(String priority) {
		this.priority = priority;
	}

	public String getQuantity() {
		return quantity;
	}

	public void setQuantity(String quantity) {
		this.quantity = quantity;
	}

}
